import React from 'react';
import {
    DeploymentUnitOutlined,
    WindowsOutlined,
    HddOutlined,
    UngroupOutlined,
    FolderOpenOutlined,
    OneToOneOutlined,
    ProfileOutlined,
    PictureOutlined,
    StarOutlined,
    UnlockOutlined,
    GlobalOutlined,
    ScheduleOutlined,
    UserOutlined,
    SecurityScanOutlined,
    SettingOutlined,
    ReadOutlined,
    HistoryOutlined,
    PieChartOutlined,
} from '@ant-design/icons';
const getIcon = (name) => {
    switch (name) {
        case 'DeploymentUnitOutlined': return <DeploymentUnitOutlined />;
        case 'WindowsOutlined': return <WindowsOutlined />;
        case 'HddOutlined': return <HddOutlined />;
        case 'UngroupOutlined': return <UngroupOutlined />;
        case 'FolderOpenOutlined': return <FolderOpenOutlined />;
        case 'OneToOneOutlined': return <OneToOneOutlined />;
        case 'ProfileOutlined': return <ProfileOutlined />;
        case 'PictureOutlined': return <PictureOutlined />;
        case 'StarOutlined': return <StarOutlined />;
        case 'UnlockOutlined': return <UnlockOutlined />;
        case 'GlobalOutlined': return <GlobalOutlined />;
        case 'ScheduleOutlined': return <ScheduleOutlined />;
        case 'UserOutlined': return <UserOutlined />;
        case 'SecurityScanOutlined': return <SecurityScanOutlined />;
        case 'SettingOutlined': return <SettingOutlined />;
        case 'ReadOutlined': return <ReadOutlined />;
        case 'HistoryOutlined': return <HistoryOutlined />;
        case 'PieChartOutlined': return <PieChartOutlined />;
        default: return <OneToOneOutlined />
    }
}
export default getIcon;